// TextureList.h: interface for the CTextureList class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TEXTURELIST_H__95519D78_0FDC_458F_A265_AD3B77069291__INCLUDED_)
#define AFX_TEXTURELIST_H__95519D78_0FDC_458F_A265_AD3B77069291__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class xTexture;

class TEXTURELIST
{
public:
	TEXTURELIST* pPreNode;
	TEXTURELIST* pNextNode;

	xTexture* pTex;

	TEXTURELIST() {
		pPreNode = NULL;
		pNextNode = NULL;
		pTex = NULL;
	}

	~TEXTURELIST() 
	{ 
		Clear();
	}

	void Clear() {
		
	}
};

class CTextureList  
{
public:
	TEXTURELIST* pFirst;
	TEXTURELIST* pLast;
	int TotNum;

	CTextureList();
	virtual ~CTextureList();
	void Clear();

	BOOL AddTexture(xTexture* ptex);
	BOOL DelTexture(xTexture* ptex);
	TEXTURELIST* FindTexture(xTexture* ptex);

	void DestroyAllTexture();
};

#endif // !defined(AFX_TEXTURELIST_H__95519D78_0FDC_458F_A265_AD3B77069291__INCLUDED_)
